﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	SearchItem
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>SearchItem</h2>
     <link href="../../Content/Admin/control.css" rel="stylesheet" type="text/css" />
    <div>
    <form method="post" action="/Items/SearchItem">
    Tên vật phẩm:<input type="text" name="ItemName" />
    <table class="TableView" width="100%">
   <tr class="trHeader">
   <td>Mã Vật phẩm</td>
     <td style="width: 240px">Tên Vật phẩm</td>
       <td>Trạng thái khóa</td>
       <td>Số lượng</td>
   </tr>
   <%if (ViewData["listserchitem"] != null)
     { %>
    <%foreach (VgoCardChange.Models.Objects.Items vp in (List<VgoCardChange.Models.Objects.Items>)ViewData["listserchitem"])
      { %>
      <tr class="trOdd">
      <td><%:vp.ItemID%></td>
      <td style="width: 240px"><%:vp.ItemName%></td>
      <td><%:vp.IsBind%></td>
      <td><%:vp.Quantity%></td>
      </tr>
    <%} %>
    <%} %>
     </table>
     <div class="Control">
     <input type="submit" value="Tìm kiếm"  class="vadd"/>
     <%:Html.ActionLink("Quay lại", "GetItems", "Items", new { @class = "vback" })%>
     </div>
     </form>
    </div>

</asp:Content>
